
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 库存状态 0：已激活 1：未激活
 * </p>
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum ActiveStatusEnum {

    ALLOCATED("0", "已激活"),
    UNALLOCATED("1", "未激活"),
    TOBEALLOCATED("2", "待激活");
    private final String value;
    private final String description;

    public static ActiveStatusEnum find(String val) {
        for (ActiveStatusEnum dataScopeEnum : ActiveStatusEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
